<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改账户')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <form class="form-horizontal m" id="form-account-edit" th:object="${sysFnAccount}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="row">
                <div class="col-lg-12">
                        <div class="ibox-content">
                            <div class="panel-group payments-method" id="accordion">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <div class="float-right">
                                            <i class="fa fa-credit-card text-danger"></i>
                                            <i class="fa fa-credit-card-alt text-warning"></i>
                                        </div>
                                        <h5 class="panel-title">
                                            <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">[[${sysFnAccount.accountNo}]]</a>
                                        </h5>
                                    </div>
                                    <div id="collapseTwo" class="panel-collapse collapse in">
                                        <div class="panel-body">
                                            <div class="row">
                                                <div class="col-md-4">
                                                    <h2>[[${sysFnAccount.accountName}]]</h2>
                                                    <strong>总金额:</strong>: <span class="text-navy">￥[[${sysFnAccount.totalAmount}]]</span><br/>
                                                    <strong>冻结金额:</strong>: <span class="text-navy">￥[[${sysFnAccount.freezeAmount}]]</span>
                                                    <p class="m-t">
                                                        （1）DingFlow为您提供在线充值充值方式，充值为虚拟账户充值，充值成功后请及时核对账务流水；
                                                    </p>
                                                    <p>
                                                        （2）每个公司可创建多个账户进行公司账务管理,DingFlow建议您只使用一个账户，多账户后续功能完善中；
                                                    </p>
                                                    <p>
                                                        （3）账户只做账务管理，并未发生实际交易金额，请提前须知;
                                                    </p>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-3 control-label ">账户帐号：</label>
                                                <div class="col-sm-8 input-group">
                                                    <input name="accountNo" th:field="*{accountNo}" class="form-control" type="text"  readonly>
                                                    <span class="input-group-addon"><i class="fa fa-credit-card"></i></span>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-3 control-label ">账户名称：</label>
                                                <div class="col-sm-8 input-group">
                                                    <input name="accountName" th:field="*{accountName}" class="form-control" type="text"  readonly>
                                                    <span class="input-group-addon"><i class="fa fa-address-book"></i></span>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-3 control-label is-required">充值金额：</label>
                                                <div class="col-sm-8 input-group">
                                                    <input name="rechargeAmount"  class="form-control" type="number" required>
                                                    <span class="input-group-addon"><i class="fa fa-cny"></i></span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>

                    </div>

            </div>
            <input name="id" th:field="*{id}" type="hidden">
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/account";
        $("#form-account-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/rechargeAccount", $('#form-account-edit').serialize());
            }
        }
    </script>
</body>
</html>